import 'package:flutter/cupertino.dart';

class MyContainer extends StatelessWidget {
  final Widget child;
  final List<double> margin;
  MyContainer({this.child, this.margin = const [0.0, 0.0, 0.0, 20.0]});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.only(left: 10, right: 10),
      margin: EdgeInsets.fromLTRB(margin[0], margin[1], margin[2], margin[3]),
      child: child,
    );
  }
}
